package com.zggk.lzz.callback;

/**
 * Created by 张成昆 on 2021-4-12.
 */


import android.app.Activity;
import android.app.Dialog;

import com.lzy.okgo.callback.FileCallback;
import com.lzy.okgo.request.base.Request;

import java.io.File;

public abstract class FileDialogCallback  extends FileCallback {

    private Dialog mWeiboDialog;

    public FileDialogCallback(Activity activity) {
        mWeiboDialog = WeiboDialogUtils.createLoadingDialog(activity, "加载中...");
    }

    @Override
    public void onStart(Request<File, ? extends Request> request) {
    }

    @Override
    public void onFinish() {
        WeiboDialogUtils.closeDialog(mWeiboDialog);
    }
}

